package com.jms.web.controller.jms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jms.common.annotation.Excel;
import com.jms.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 资讯详情对象 news
 * 
 * @author drx
 * @date 2024-04-29
 */
public class News extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 资讯标题 */
    @Excel(name = "资讯标题")
    private String newsTitle;

    /** 资讯内容 */
    @Excel(name = "资讯内容")
    private String newsContent;

    /** 资讯单位 */
    @Excel(name = "资讯单位")
    private String newsUnit;

    /** 资讯类型 --> 字典 news_type */
    @Excel(name = "资讯类型 --> 字典 news_type")
    private String newsType;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String createName;

    /** 修改人姓名 */
    @Excel(name = "修改人姓名")
    private String updateName;

    @Excel(name = "地区")
    private String region;

    @Excel(name = "发布时间")
    private Date transitTime;

    private List<AttachFile> attachFiles;

    public List<AttachFile> getAttachFiles(){return attachFiles;}

    public void setAttachFiles(List<AttachFile> attachFiles){this.attachFiles = attachFiles;}

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public Date getTransitTime() {
        return transitTime;
    }

    public void setTransitTime(Date transitTime) {
        this.transitTime = transitTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNewsTitle(String newsTitle) 
    {
        this.newsTitle = newsTitle;
    }

    public String getNewsTitle() 
    {
        return newsTitle;
    }
    public void setNewsContent(String newsContent) 
    {
        this.newsContent = newsContent;
    }

    public String getNewsContent() 
    {
        return newsContent;
    }
    public void setNewsUnit(String newsUnit) 
    {
        this.newsUnit = newsUnit;
    }

    public String getNewsUnit() 
    {
        return newsUnit;
    }
    public void setNewsType(String newsType) 
    {
        this.newsType = newsType;
    }

    public String getNewsType() 
    {
        return newsType;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("newsTitle", getNewsTitle())
            .append("newsContent", getNewsContent())
            .append("newsUnit", getNewsUnit())
            .append("newsType", getNewsType())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("createName", getCreateName())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateName", getUpdateName())
            .toString();
    }
}